package com.android.mensa.models;

import java.util.ArrayList;

public class Day {

	private String mName;
	private String mDate;
	private ArrayList<Meal> mMeals;

	public String getName() {
		return mName;
	}

	public void setName(String _name) {
		this.mName = _name;
	}

	public String getDate() {
		return mDate;
	}

	public void setDate(String _date) {
		this.mDate = _date;
	}

	public ArrayList<Meal> getMeals() {
		return mMeals;
	}

	public void addMeal(Meal meal) {
		mMeals.add(meal);
	}

	public Day() {
		mMeals = new ArrayList<Meal>();
	}

	@Override
	public boolean equals(Object o) {

		if (!(o instanceof Day))
			return false;

		Day day = (Day) o;
		return day.getName() == mName;
	}

	@Override
	public int hashCode() {
		return mName.hashCode();
	}
}
